package com.gomtel.smartdevice.moudle;

import com.gomtel.smartdevice.moudle.db.DBHelper;
import com.gomtel.smartdevice.moudle.db.entity.AppConfigurationInfo;
import com.gomtel.smartdevice.moudle.db.entity.AtrialFibrillationInfo;
import com.gomtel.smartdevice.moudle.db.entity.BdDataInfo;
import com.gomtel.smartdevice.moudle.db.entity.CaloryDataInfo;
import com.gomtel.smartdevice.moudle.db.entity.EcgDataInfo;
import com.gomtel.smartdevice.moudle.db.entity.HeartRateDataInfo;
import com.gomtel.smartdevice.moudle.db.entity.LoginUserInfo;
import com.gomtel.smartdevice.moudle.db.entity.PathLengthContentInfo;
import com.gomtel.smartdevice.moudle.db.entity.PathLengthInfo;
import com.gomtel.smartdevice.moudle.db.entity.PulseConditionBean;
import com.gomtel.smartdevice.moudle.db.entity.SignsOfDataInfo;
import com.gomtel.smartdevice.moudle.db.entity.StepCountContentInfo;
import com.gomtel.smartdevice.moudle.db.entity.StepCountInfo;

import java.util.List;

/**
 * Created by Administrator on 2017/10/27.
 */

public class DataManager implements DBHelper {
    String TAG = "DataManager";

    private DBHelper mDbHelper;

    public DataManager(DBHelper mDbHelper) {
        this.mDbHelper = mDbHelper;
    }

    //---------------------------数据库查询---------------------------------------

    @Override
    public LoginUserInfo queryLoginUserInfo(String mUserName) {
        return mDbHelper.queryLoginUserInfo(mUserName);
    }

    @Override
    public LoginUserInfo queryLoginUserInfoToRecentlyTime(int recentlyTime) {
        return mDbHelper.queryLoginUserInfoToRecentlyTime(recentlyTime);
    }

    @Override
    public AppConfigurationInfo queryAppConfigurationInfo(String currentUser) {
        return mDbHelper.queryAppConfigurationInfo(currentUser);
    }

    @Override
    public StepCountInfo queryCurrentDataStepInfo(String CurrentData) {
        return mDbHelper.queryCurrentDataStepInfo(CurrentData);
    }

    @Override
    public List<StepCountInfo> queryCurrentWeekStepInfo(String CurrentWeek) {
        return mDbHelper.queryCurrentWeekStepInfo(CurrentWeek);
    }

    @Override
    public List<StepCountInfo> queryCurrentMonthStepInfo(String CurrentMonth) {
        return mDbHelper.queryCurrentMonthStepInfo(CurrentMonth);
    }

    @Override
    public List<StepCountContentInfo> queryStepCountContentInfo(String data) {
        return mDbHelper.queryStepCountContentInfo(data);
    }

    @Override
    public StepCountContentInfo queryStepCountCurrentTimeContentInfo(String currentTime) {
        return mDbHelper.queryStepCountCurrentTimeContentInfo(currentTime);
    }

    @Override
    public PathLengthInfo queryCurrentDataLengthInfo(String CurrentData) {
        return mDbHelper.queryCurrentDataLengthInfo(CurrentData);
    }

    @Override
    public List<PathLengthInfo> queryCurrentWeekLengthInfo(String CurrentWeek) {
        return mDbHelper.queryCurrentWeekLengthInfo(CurrentWeek);
    }

    @Override
    public List<PathLengthInfo> queryCurrentMonthLengthInfo(String CurrentMonth) {
        return mDbHelper.queryCurrentMonthLengthInfo(CurrentMonth);
    }

    @Override
    public List<PathLengthContentInfo> queryPathLengthContentInfo(String data) {
        return mDbHelper.queryPathLengthContentInfo(data);
    }

    @Override
    public PathLengthContentInfo queryPathLengthCurrentTimeContentInfo(String currentTime) {
        return mDbHelper.queryPathLengthCurrentTimeContentInfo(currentTime);
    }

    @Override
    public SignsOfDataInfo querySignsOfDataInfo(String currentUser) {
        return mDbHelper.querySignsOfDataInfo(currentUser);
    }

    @Override
    public List<EcgDataInfo> queryEcgDataInfo(String currentUser) {
        return mDbHelper.queryEcgDataInfo(currentUser);
    }

    @Override
    public List<BdDataInfo> queryBdDataInfo(String currentUser) {
        return mDbHelper.queryBdDataInfo(currentUser);
    }

    @Override
    public CaloryDataInfo queryCaloryDataInfo(String day) {
        return mDbHelper.queryCaloryDataInfo(day);
    }

    @Override
    public HeartRateDataInfo queryHeartRateDataInfo(String day) {
        return mDbHelper.queryHeartRateDataInfo(day);
    }

    @Override
    public List<HeartRateDataInfo> queryHeartRateDataList(String currentUser) {
        return mDbHelper.queryHeartRateDataList(currentUser);
    }

    @Override
    public List<PulseConditionBean> queryPulseConditionList(String currentUser) {
        return mDbHelper.queryPulseConditionList(currentUser);
    }

    @Override
    public List<PulseConditionBean> queryPulseConditionSelectTimeList(String day) {
        return mDbHelper.queryPulseConditionSelectTimeList(day);
    }

    @Override
    public List<PulseConditionBean> queryPulseConditionAllList() {
        return mDbHelper.queryPulseConditionAllList();
    }

    @Override
    public List<AtrialFibrillationInfo> queryAtrialFibrillationInfo(String day) {
        return mDbHelper.queryAtrialFibrillationInfo(day);
    }

    @Override
    public List<AtrialFibrillationInfo> queryAtrialFibrillationALLInfo(String currentUser) {
        return mDbHelper.queryAtrialFibrillationALLInfo(currentUser);
    }

    @Override
    public List<LoginUserInfo> loadLoginUserInfo() {
        return mDbHelper.loadLoginUserInfo();
    }

    @Override
    public List<AppConfigurationInfo> loadAppConfigurationInfo() {
        return mDbHelper.loadAppConfigurationInfo();
    }

    @Override
    public void insertLoginUserInfo(LoginUserInfo mLoginUserInfo) {
        mDbHelper.insertLoginUserInfo(mLoginUserInfo);
    }

    @Override
    public void insertAppConfigurationInfo(AppConfigurationInfo appConfigurationInfo) {
        mDbHelper.insertAppConfigurationInfo(appConfigurationInfo);
    }

    @Override
    public void insertStepCountInfo(StepCountInfo stepCountInfo) {
        mDbHelper.insertStepCountInfo(stepCountInfo);
    }

    @Override
    public void insertStepCountContentInfo(StepCountContentInfo stepCountContentInfo) {
        mDbHelper.insertStepCountContentInfo(stepCountContentInfo);
    }

    @Override
    public void insertPathLengthInfo(PathLengthInfo pathLengthInfo) {
        mDbHelper.insertPathLengthInfo(pathLengthInfo);
    }

    @Override
    public void insertPathLengthContentInfo(PathLengthContentInfo pathLengthContentInfo) {
        mDbHelper.insertPathLengthContentInfo(pathLengthContentInfo);
    }

    @Override
    public void insertSignsOfDataInfo(SignsOfDataInfo signsOfDataInfo) {
        mDbHelper.insertSignsOfDataInfo(signsOfDataInfo);
    }

    @Override
    public void insertEcgDataInfo(EcgDataInfo ecgDataInfo) {
        mDbHelper.insertEcgDataInfo(ecgDataInfo);
    }

    @Override
    public void insertBdDataInfo(BdDataInfo bdDataInfo) {
        mDbHelper.insertBdDataInfo(bdDataInfo);
    }

    @Override
    public void insertCaloryDataInfo(CaloryDataInfo caloryDataInfo) {
        mDbHelper.insertCaloryDataInfo(caloryDataInfo);
    }

    @Override
    public void insertHeartRateDataInfo(HeartRateDataInfo heartRateDataInfo) {
        mDbHelper.insertHeartRateDataInfo(heartRateDataInfo);
    }

    @Override
    public void insertPulseConditionBean(PulseConditionBean pulseConditionBean) {
        mDbHelper.insertPulseConditionBean(pulseConditionBean);
    }

    @Override
    public void insertAtrialFibrillationInfo(AtrialFibrillationInfo atrialFibrillationInfo) {
        mDbHelper.insertAtrialFibrillationInfo(atrialFibrillationInfo);
    }

    @Override
    public void deleteLoginUserInfo(String mUserName) {
        mDbHelper.deleteLoginUserInfo(mUserName);
    }

    @Override
    public void deleteAppConfigurationInfo(String mUserName) {
        mDbHelper.deleteAppConfigurationInfo(mUserName);
    }

    @Override
    public void UpDataLoginUserInfo(LoginUserInfo mLoginUserInfo) {
        mDbHelper.UpDataLoginUserInfo(mLoginUserInfo);
    }

    @Override
    public void UpDataAppConfigurationInfo(AppConfigurationInfo appConfigurationInfo) {
        mDbHelper.UpDataAppConfigurationInfo(appConfigurationInfo);
    }

    @Override
    public void UpDataStepCountInfo(StepCountInfo stepCountInfo) {
        mDbHelper.UpDataStepCountInfo(stepCountInfo);
    }

    @Override
    public void UpDataStepCountContentInfo(StepCountContentInfo stepCountContentInfo) {
        mDbHelper.UpDataStepCountContentInfo(stepCountContentInfo);
    }

    @Override
    public void UpDataPathLengthInfo(PathLengthInfo pathLengthInfo) {
        mDbHelper.UpDataPathLengthInfo(pathLengthInfo);
    }

    @Override
    public void UpDataPathLengthContentInfo(PathLengthContentInfo pathLengthContentInfo) {
        mDbHelper.UpDataPathLengthContentInfo(pathLengthContentInfo);
    }

    @Override
    public void UpDataSignsOfDataInfo(SignsOfDataInfo signsOfDataInfo) {
        mDbHelper.UpDataSignsOfDataInfo(signsOfDataInfo);
    }

    @Override
    public void UpDataEcgDataInfo(EcgDataInfo ecgDataInfo) {
        mDbHelper.UpDataEcgDataInfo(ecgDataInfo);
    }

    @Override
    public void UpDataBdDataInfo(BdDataInfo bdDataInfo) {
        mDbHelper.UpDataBdDataInfo(bdDataInfo);
    }

    @Override
    public void UpDataCaloryDataInfo(CaloryDataInfo caloryDataInfo) {
        mDbHelper.UpDataCaloryDataInfo(caloryDataInfo);
    }

    @Override
    public void UpDataHeartRateDataInfo(HeartRateDataInfo heartRateDataInfo) {
        mDbHelper.UpDataHeartRateDataInfo(heartRateDataInfo);
    }

    //---------------------------网络请求---------------------------------------
}
